package com.hy.form.input;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class AreaAddForm {

	private String guid;

	/**
	 * 上级地域
	 */
    private String parent_guid;

    /**
     * 地域编码
     */
    private String code;

    /**
     * 地域名称
     */
    @NotBlank(message = "区域名字不能为空")
    private String name;

    /**
     * 地域类型(类型:p-省;c-市;d-区;s-街)
     */
    private String type;
    
    /**
     * 邮政编码
     */
    private String zip_code;
    
    /**
     * 排序
     */
    private Integer sorting;
    
    /**
     * 状态：0--启用;1--禁用
     */
    private Integer status;

    public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getZip_code() {
		return zip_code;
	}

	public void setZip_code(String zip_code) {
		this.zip_code = zip_code;
	}

	public Integer getSorting() {
		return sorting;
	}

	public void setSorting(Integer sorting) {
		this.sorting = sorting;
	}

	/**
     * 描述
     */
    private String description;

    /**
     * 创建时间
     */
    private Date create_time;

    /**
     * 创建者
     */
    private String creator_by;

    /**
     * 修改时间
     */
    private Date update_time;

    /**
     * 修改者
     */
    private String update_by;

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getParent_guid() {
		return parent_guid;
	}

	public void setParent_guid(String parent_guid) {
		this.parent_guid = parent_guid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public String getCreator_by() {
		return creator_by;
	}

	public void setCreator_by(String creator_by) {
		this.creator_by = creator_by;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public String getUpdate_by() {
		return update_by;
	}

	public void setUpdate_by(String update_by) {
		this.update_by = update_by;
	}
}
